//网关
var serviceIP = "http://localhost:5555";

//认证状态监测
var storage = window.localStorage;
var token = storage.getItem("token");
var refreshtoken = storage.getItem("refreshtoken");




/* 拦截跳转登录页面 */
$.ajaxSetup({
	headers: {
		'token': token,
		'refreshToken': refreshtoken
	},
	statusCode: {
		401: function(data) {
			setTimeout(function() {
				console.log(data.responseJSON.data)
				location.href = "/center/login";
			}, 1000);
		}
	}
})
